
package com.compuvest.web;

// <editor-fold defaultstate="collapsed" desc="import">
import java.io.Serializable;
import java.util.ArrayList;
// </editor-fold>

public class Order implements Serializable {

// <editor-fold defaultstate="collapsed" desc="init variables">
    private ArrayList<Tracking> tracks;

    private int orderid;
    private String orderNo = "";
    private String orderDate = "";
    private double shippingCost;
    private double taxCost;
    private double grandTotal;
    private String cod = "";
    private String shippingDesc = "";
    private boolean haveHistory = false;
// </editor-fold>

    public Order() {
	tracks = new ArrayList<Tracking>(20);
    }

    public int getOrderID()                         { return orderid; }
    public void setOrderID(int orderid)             { this.orderid = orderid; }

    public String getOrderNo()                      { return orderNo; }
    public void setOrderNo(String orderNo)          { this.orderNo = orderNo; }

    public String getOrderDate()                    { return orderDate; }
    public void setOrderDate(String orderDate)      { this.orderDate = orderDate; }

    public double getShippingCost()                 { return shippingCost; }
    public void setShippingCost(double shippingCost){ this.shippingCost = shippingCost; }

    public double getTaxCost()                      { return taxCost; }
    public void setTaxCost(double taxCost)          { this.taxCost = taxCost; }

    public double getGrandTotal()                   { return grandTotal; }
    public void setGrandTotal(double grandTotal)    { this.grandTotal = grandTotal; }

    public String getCOD()                          { return cod; }
    public void setCOD(String cod)                  { this.cod = cod; }

    public String getShippingDesc()                 { return shippingDesc; }
    public void setShippingDesc(String shippingDesc){ this.shippingDesc = shippingDesc; }

    public boolean haveHistory()                    { return haveHistory; }
    public void haveHistory(boolean haveHistory)    { this.haveHistory = haveHistory; }

//------------------------------------------------
//
    public void addTracking(Tracking tracking) {
	tracks.add(tracking);
    }

//------------------------------------------------
//
    public ArrayList<Tracking> getTracking() {
	return tracks;
    }
}
